package com.vg.service;

import java.util.ArrayList;
import java.util.HashMap;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.androidhive.jsonparsing.JSONParser;
import com.vg.config.linkUrl;


import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.ListView;

public class service_loadjson extends Service {

	 static final String URL = "http://deduocyeu.com/json/getAllUsers.php";
		private static final long serialVersionUID = 1L;

		String mSampleTopicText = "Topic text goes here.";
		ListView list;
	//    LazyAdapter adapter;
	     ArrayList<HashMap<String, String>> songsList = new ArrayList<HashMap<String, String>>();

	     
	     ArrayList<HashMap<String, String>> mArrcontact;
	 	JSONArray JsonArr;
	 	JSONParser jparse;
	 	linkUrl mLinkUrl;
	     
	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();
		loadjson();
		Log.d("test", "ok");
	}
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		// TODO Auto-generated method stub
		Log.d("test", "ok");
		return super.onStartCommand(intent, flags, startId);
		
	}
	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}
	
    public void loadjson()
    {
    	mArrcontact=new ArrayList<HashMap<String,String>>();
    	JsonArr=new JSONArray();
    	mLinkUrl=new linkUrl();
    	JsonArr=jparse.getJsonarray(mLinkUrl.List_user);
    	
    }

}
